package com.itheima.day11.bytestream.test4;

import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        FileOutputStream fos = null;
        try {
            //System.out.println(2 / 0);
            fos = new FileOutputStream("myCode\\src\\com\\itheima\\day11\\a.txt");
            fos.write(97);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fos != null) {
                try {
                    System.out.println("释放资源");
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

        }
    }
}
